<?php

class Core_Form_Admincp_Setting_General extends Nuo_Form
{
	function init()
	{
		$this -> setTitle('General Setting');

		$this -> setDesc('form-desc.Site Information');

		$this -> addChild('text', 'core_site_title', array(
			'label' => 'Site Title',
			'desc' => 'form-desc.Site Title',
		));

		$this -> addChild('text', 'core_site_delimiter', array(
			'label' => 'Site Title Delimiter',
			'desc' => 'form-desc.Site Title Delimiter',
		));

		$this -> addChild('textarea', 'core_site_keywords', array(
			'label' => 'Site Meta Keywords',
			'desc' => 'form-desc.Site Meta Keywords',
		));

		$this -> addChild('textarea', 'core_site_description', array(
			'label' => 'Site Meta Description',
			'desc' => 'form-desc.Site Meta Description',
		));

		$this -> addChild('yesno', 'core_site_multiLang', array(
			'label' => 'Support Multi Languages',
			'desc' => 'form-desc.Support Multi Linguages',
		));

		$this -> addChild('select', 'core_site_locale', array(
			'label' => 'Default Locale',
			'desc' => 'form-desc.Default Locale',
			'multiOptions' => Nuo::getTable('core/locale') -> getMultiOptions()
		));

		$this -> addChild('select', 'core_site_timezone', array(
			'label' => 'Default Time Zone',
			'desc' => 'form-desc.Default Time Zone',
			'multiOptions' => Nuo::getTable('core/timezone') -> getMultiOptions(),
		));

		$this -> addChild('select', 'core_site_currency', array(
			'label' => 'Default Currency',
			'desc' => 'form-desc.Default Currency',
			'multiOptions' => Nuo::getTable('core/currency') -> getMultiOptions(),
		));

		$this -> addChild('text', 'core_site_staticUrl', array(
			'label' => 'Static URL',
			'desc' => 'form-desc.Static URL',
			'value' => Nuo::getUrl('static'),
		));

		$this -> addChild('text', 'gaID', array('label' => 'Google Analytics ID', ));

		$this -> addChild('group', '_footer');

		$this -> _footer -> addChild('submit', '_submit') -> addChild('cancel', '_cancel');
	}

}
